#
# Be sure to run `pod lib lint GLSupportKit.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'GLSupportKit'
  s.version          = '0.1.1'
  s.summary          = '消费者APP基座'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

  s.homepage         = 'https://gitee.com/zhiyong0906'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'zhiyong0906' => '9851717@qq.com' }
  s.source           = { :git => 'https://gitee.com/zhiyong0906/GLSupportKit.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '8.0'



  # s.public_header_files = 'Pod/Classes/**/*.h'
  s.frameworks = 'UIKit', 'CoreMotion', 'CoreVideo', 'CoreMedia', 'VideoToolbox', 'OpenAL', 'AudioToolbox', 'AVFoundation', 'MobileCoreServices', 'CoreGraphics', 'CoreLocation', 'CoreTelephony', 'QuartzCore', 'SystemConfiguration', 'Security', 'CoreText', 'OpenGLES', 'AdSupport', 'JavaScriptCore', 'GLKit'
  s.libraries = 'xml2', 'z', 'sqlite3', 'c', 'resolv', 'iconv', 'c++', 'bz2', 'stdc++', 'stdc++.6.0.9'
  s.pod_target_xcconfig = { 'OTHER_LDFLAGS' => '-ObjC','CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES' }
  
  s.static_framework = true

#s.source_files = ['GLSupportKit/Classes/LynkcoApp/**/*.{h,m,mm,pch}']

#s.resources = ['GLSupportKit/Assets/**/*.{gif,jpg,png,mp3,mp4,lproj,plist,json,bundle,xcassets,xib,storyboard}']

#  s.resource_bundles = {
#      'GLSupportKit' => ['GLSupportKit/Assets/**/*.{gif,jpg,png,mp3,mp4,lproj,plist,json,bundle,xcassets,xib,storyboard}']
#  }


 

  s.dependency 'Aspects', '~> 1.4.1'
  s.dependency 'GLRouter'
  s.dependency 'AFNetworking'
  s.dependency 'SVProgressHUD'
  s.dependency 'Masonry', '~> 1.0.2'
  s.dependency 'IQKeyboardManager'
  s.dependency 'MJRefresh'
  s.dependency 'MJExtension'
  s.dependency 'SDWebImage', '4.2.3'
  s.dependency 'DateTools'

  #
  s.dependency 'AlicloudPush'
  s.dependency 'AMapNavi-NO-IDFA'
  s.dependency 'AMap3DMap-NO-IDFA'
  s.dependency 'AMapSearch-NO-IDFA'
  s.dependency 'Bugly'

  s.subspec 'LibrariesVender' do |lib|
      lib.source_files = ['GLSupportKit/Classes/LibrariesVender/Other/**/*.{h,m,mm,pch}']
      lib.public_header_files = ['GLSupportKit/Classes/LibrariesVender/Other/**/*.h']
      lib.vendored_frameworks = 'GLSupportKit/Classes/LibrariesVender/Frameworks/**/*.framework'
      lib.vendored_libraries = 'GLSupportKit/Classes/LibrariesVender/Other/**/*.a'
      #lib.resources = 'GLSupportKit/Classes/Libraries/**/*.{gif,jpg,png,mp3,mp4,lproj,plist,json,bundle,xcassets,xib,storyboard}'
  end


  s.subspec 'External' do |ex|
    ex.source_files = ['GLSupportKit/Classes/External/**/*.{h,m,mm,pch}']
    ex.prefix_header_file = 'GLSupportKit/Classes/External/Macro/GLSupportKit.h'
    #ex.resources = ['GLSupportKit/Classes/External/**/*.{gif,jpg,png,mp3,mp4,lproj,plist,json,bundle,xcassets,xib,storyboard}']
#    ex.resource_bundles = {
#        'External' => ['GLSupportKit/Classes/External/**/*.{gif,jpg,png,mp3,mp4,lproj,plist,json,bundle,xcassets,xib,storyboard}']
#    }

    ex.dependency 'AFNetworking'
    ex.dependency 'SVProgressHUD'
    ex.dependency 'Masonry', '~> 1.0.2'
    ex.dependency 'IQKeyboardManager'
    ex.dependency 'MJRefresh'
    ex.dependency 'MJExtension'
    ex.dependency 'SDWebImage', '4.2.3'
    ex.dependency 'DateTools'
    ex.dependency 'MBProgressHUD'
    ex.dependency 'GLSupportKit/LibrariesVender'

  end
  
  s.subspec 'LynkcoApp' do |lk|
    lk.source_files = ['GLSupportKit/Classes/LynkcoApp/**/*.{h,m,mm,pch}']
    lk.public_header_files = ['GLSupportKit/Classes/LynkcoApp/**/*.h']
    lk.resources = ['GLSupportKit/Classes/LynkcoApp/**/*.{gif,jpg,png,mp3,mp4,emo,lproj,plist,json,bundle,xcassets,xib,storyboard}','GLSupportKit/Assets/files/**/*.{gif,jpg,png,mp3,mp4,emo,lproj,plist,json,xib,storyboard}','GLSupportKit/Assets/bundles/*.{bundle,xcassets}']
    lk.dependency 'GLSupportKit/LibrariesVender'
    lk.dependency 'GLSupportKit/External'
    lk.prefix_header_file = 'GLSupportKit/Classes/LynkcoApp/Macro/PrefixHeader.pch'
  end

end
